package org.ghl.gulimalltest.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 使用feign远程调用步骤
 * 导入feign依赖
 * 编写一个远程调用接口(接口里表明调用服务的id和具体和服务里请求)
 * 开启远程调用组件
 *在controller里调用此接口
 *
 *///
@EnableFeignClients(basePackages = "org.ghl.gulimalltest.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimalltestMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimalltestMemberApplication.class, args);
    }

}


